Stored Procedures [dbo].[BAEHistoryAdd]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@ipvarchar(128)128
@descriptionvarchar(1024)1024
@eventTypevarchar(256)256
SQL Script
create procedure [dbo].[BAEHistoryAdd] @ip as
varchar(128),
    @description AS varchar(1024),
    @eventType AS varchar(256)
AS
    INSERT INTO History
    (History.EventDate, History.IP, History.[Description], History.EventType)
    VALUES
    (GETDATE(), @ip, @description, @eventType);

    SELECT (CAST (@@IDENTITY AS int)) AS 'HistoryId'

GO
Uses